package com.jrx.anytxn.transaction.dto.loanRelationInfo;

import com.jrx.anytxn.common.constant.RegexConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 贷款要素查询req
 *
 * @author : zhenghaopu
 * 2019/11/21
 */
@ApiModel(value = "贷款要素查询请求实体", description = "贷款要素查询请求实体")
public class LoanElementQueryReq {

    /**
     * 交易流水号
     **/
    @ApiModelProperty(value = "流水号",required = true)
    @Size(max=32, message = "交易流水号必须小于32位")
    @Pattern(regexp = RegexConstant.ALL_CHARSET_AND_NUMBER, message = "流水号只能是英文字母和数字组成且不可为空")
    private String seqNo;
    /**
     * 租户ID
     **/
    @ApiModelProperty(value = "租戶id",required = true)
    @Size(max=4, message = "租戶id不能超过4位")
    @NotEmpty(message = "租戶id不可空")
    private String tenantId;

    /**
     * 渠道号
     */
    @ApiModelProperty(value = "渠道号", required = true)
    @Size(max=32, message = "渠道号不能超过32位")
    @NotEmpty(message = "渠道号不能为空")
    private String channel;

    /**
     * 产品id
     */
    @ApiModelProperty(value = "产品id")
    @Size(max=32, message = "产品id不能超过32位")
    private String productId;

    /**
     * 贷款类型
     */
    @ApiModelProperty(value = "贷款类型")
    private String productType;

    /**
     * 商戶id
     */
    @ApiModelProperty(value = "商戶id")
    @Size(max=32, message = "商戶id不能超过32位")
    private String merchantId;
    /**
     * 业务类型
     */
    @ApiModelProperty(value = "业务类型")
    private String bizType;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private String userId;

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(String seqNo) {
        this.seqNo = seqNo;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
